//
//  SwiftUiBaseStudyApp.swift
//  SwiftUiBaseStudy
//
//  Created by Daniel on 2023/9/27.
//

import SwiftUI
import FirebaseCore


class AppDelegate: NSObject, UIApplicationDelegate {
    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
        FirebaseApp.configure()
        
        return true
    }
}

@main
struct SwiftUiBaseStudyApp: App {
    
    // register app delegate for Firebase setup
    @UIApplicationDelegateAdaptor(AppDelegate.self) var delegate
    
    var body: some Scene {
        WindowGroup {
            //            TabBar()
            //            CourseList()
//            LoginView()
            Home()
                .environmentObject(UserStore())
        }
    }
}
